# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=swaks
pkgver=20240103.0
pkgrel=4
pkgdesc='Swiss Army Knife SMTP; Command line SMTP testing, including TLS and AUTH.'
groups=('blackarch' 'blackarch-scanner')
arch=('any')
url='https://jetmore.org/john/code/swaks/'
license=('GPL-1.0-only')
depends=('perl' 'perl-net-dns' 'perl-net-ssleay')
source=("https://github.com/jetmore/swaks/archive/v$pkgver.tar.gz")
sha512sums=('2d4ba9f97923bab72e5f0bf77bd8641a4034d19060aaf7b9944d8fc7a01f88914d982e64b32e863531cd4259c78081c20cd673c2ae83aef4aa6987ae8a682682')

package() {
  cd "$pkgname-$pkgver"

  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"

  cd doc
  pod2man base.pod "$pkgname.1"
  install -Dm 644 "$pkgname.1" "$pkgdir/usr/share/man/man1/$pkgname.1"
}

